package com.jic.manager.mapper;

import com.jic.manager.entity.MerchantWeBankContract;
import com.jic.manager.request.MerchantWeBankContractRequest;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 商户合同信息表
 * @author : 
 * @email : 
 * @since : 2020-11-28 11:09:13
 * @version : v1.0.0
 */
@Repository
@Mapper
public interface  MerchantWeBankContractMapper {

    long insert(MerchantWeBankContract merchantWeBankContract);

    long delete(Long id);

    long update(MerchantWeBankContract merchantWeBankContract);

    MerchantWeBankContract queryByPrimaryKey(Long id);

    List<MerchantWeBankContract> query(MerchantWeBankContract merchantWeBankContract);

    List<MerchantWeBankContract> queryPage(@Param("startIndex") int startIndex, @Param("limit") int limit, @Param("merchantWeBankContract") MerchantWeBankContract merchantWeBankContract);

    long queryPageCount(MerchantWeBankContract merchantWeBankContract);

    MerchantWeBankContract getContractInfoByMerchantId(MerchantWeBankContractRequest merchantWeBankContractRequest);
}